from examples.recorder_utils import run_data_recorder
from zvt.domain import (
    StockInstitutionalInvestorHolder,
    StockTopTenFreeHolder,
    StockActorSummary,
)
from . utils import set_downloaders

data_provider = "em"
entity_provider = "em"
sleeping_time = 0.1

def record_downloader_InstitutionalInvestorHolder():
    run_data_recorder(
        domain=StockInstitutionalInvestorHolder,
        data_provider=data_provider,
        entity_provider=entity_provider,
        day_data=True,
        sleeping_time = sleeping_time
    )

def record_downloader_TopTenFreeHolder():
    run_data_recorder(
        domain=StockTopTenFreeHolder, data_provider=data_provider, entity_provider=entity_provider, day_data=True, sleeping_time = sleeping_time
    )

def record_downloader_ActorSummary():    
    run_data_recorder(
        domain=StockActorSummary, data_provider=data_provider, entity_provider=entity_provider, day_data=True, sleeping_time = sleeping_time
    )


set_downloaders(globals())